package spider.orm;

public class Word {
	private long id;
	private String word;
	private Byte isKeyWord;
	private Word parent;
	private Byte priority;
	private static Byte KeyWordValue = 1;
	private static Byte eagerValue = 1;

	public boolean isKeyWord() {
		return KeyWordValue.equals(isKeyWord);
	}
	
	public boolean isEager() {
		return eagerValue.equals(priority);
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getWord() {
		return word;
	}

	public void setWord(String word) {
		this.word = word;
	}

	public Byte getIsKeyWord() {
		return isKeyWord;
	}

	public void setIsKeyWord(Byte isKeyWord) {
		this.isKeyWord = isKeyWord;
	}

	public Word getParent() {
		return parent;
	}

	public void setParent(Word parent) {
		this.parent = parent;
	}

	public Byte getPriority() {
		return priority;
	}

	public void setPriority(Byte priority) {
		this.priority = priority;
	}
}
